import { Component } from '@angular/core';
import { NavParams, ModalController } from '@ionic/angular';

@Component({
    selector: 'prompt-alarm',
    templateUrl: 'prompt-alarm.html',
    styleUrls: ['prompt-alarm.scss']
})
export class PromptAlarmModal {
    title;

    constructor(params: NavParams, public modalCtrl: ModalController) {
        this.title = params.get('title');
    }

    choose(index) {
        this.modalCtrl.dismiss(index);
    }

}
